package vn.edu.ptithcm.pim.service;

import vn.edu.ptithcm.pim.dom.Department;

import java.util.List;

import vn.edu.ptithcm.pim.dao.DepartmentDao;
@SuppressWarnings({ "rawtypes" })
public class DepartmentService {
	private DepartmentDao departmentDao;

	public DepartmentDao getDepartmentDao() {
		return departmentDao;
	}

	public void setDepartmentDao(DepartmentDao departmentDao) {
		this.departmentDao = departmentDao;
	}

	public void save(Department department) {
		departmentDao.save(department);
	}

	public void saveOrUpdate(Department department) {
		departmentDao.saveOrUpdate(department);
	}

	public void lock(Department department) {
		departmentDao.lock(department);
	}

	public void delete(Department department) {
		departmentDao.delete(department);
	}

	public Department merge(Department department) {
		return departmentDao.merge(department);
	}

	public Department findById(java.lang.Long id) {
		return departmentDao.findById(id);
	}

	public List findByExample(Department department) {
		return departmentDao.findByExample(department);
	}

	public List getAll() {
		return departmentDao.getAll();
	}

	
}
